package com.btl.service.ai.biz.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Tim
 * @since 2025-08-11
 */
@Getter
@Setter
@Builder
@TableName("chat_memory")
public class ChatMemory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 会话 id
     */
    @TableId("id")
    private Long id;

    /**
     * 子账号 id
     */
    @TableField("child_id")
    private Long childId;

    /**
     * 社交账号 id
     */
    @TableField("social_id")
    private String socialId;

    /**
     * 聊天对象社交账号 id
     */
    @TableField("social_chat_id")
    private String socialChatId;

    /**
     * 平台 id
     */
    @TableField("channel_id")
    private Integer channelId;

    /**
     * 功能模块
     */
    @TableField("fun_module")
    private String funModule;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
}
